.class Lcom/xingbook/cinema/activity/f;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/xingbook/cinema/activity/MyVideoActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/cinema/activity/f;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/cinema/activity/f;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/cinema/activity/MyVideoActivity;

    if-nez v0, :cond_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :goto_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_0
    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->f(Lcom/xingbook/cinema/activity/MyVideoActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->e(Lcom/xingbook/cinema/activity/MyVideoActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->g(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/park/ui/p;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/xingbook/park/ui/p;->a(Ljava/lang/String;)V

    goto :goto_1

    :pswitch_1
    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->g(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/park/ui/p;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/ui/p;->b(Ljava/lang/String;)V

    goto :goto_1

    :pswitch_2
    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->b(Lcom/xingbook/cinema/activity/MyVideoActivity;)Ljava/util/LinkedHashMap;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/LinkedHashMap;->size()I

    move-result v1

    if-lez v1, :cond_2

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->d(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/park/c/a/a;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->b(Lcom/xingbook/cinema/activity/MyVideoActivity;)Ljava/util/LinkedHashMap;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/LinkedHashMap;->keySet()Ljava/util/Set;

    move-result-object v2

    invoke-virtual {v1, v2, v4}, Lcom/xingbook/park/c/a/a;->a(Ljava/util/Set;I)V

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->b(Lcom/xingbook/cinema/activity/MyVideoActivity;)Ljava/util/LinkedHashMap;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/LinkedHashMap;->size()I

    move-result v1

    const/4 v2, 0x1

    if-le v1, v2, :cond_1

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->f(Lcom/xingbook/cinema/activity/MyVideoActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->d(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/park/c/a/a;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_1
    const-string v1, "\u66f4\u591a\u7cbe\u5f69\uff0c\u70b9\u51fb\u8fdb\u5165\u300e\u661f\u5b9d\u5f71\u9662\u300f\u770b\u770b\u5427~"

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->c(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/cinema/a/d;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/cinema/a/d;->n()Lcom/xingbook/park/c/a/o;

    move-result-object v2

    invoke-virtual {v2, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    :goto_2
    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->e(Lcom/xingbook/cinema/activity/MyVideoActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->c(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/cinema/a/d;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->g(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/park/ui/p;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/ui/p;->b()V

    goto :goto_1

    :cond_2
    const-string v1, "\u6ca1\u6709\u5185\u5bb9\u54e6,\u70b9\u51fb\u8fdb\u5165\u300e\u661f\u5b9d\u5f71\u9662\u300f\u770b\u770b\u5427~"

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->c(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/cinema/a/d;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/cinema/a/d;->n()Lcom/xingbook/park/c/a/o;

    move-result-object v2

    invoke-virtual {v2, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    invoke-static {v0}, Lcom/xingbook/cinema/activity/MyVideoActivity;->c(Lcom/xingbook/cinema/activity/MyVideoActivity;)Lcom/xingbook/cinema/a/d;

    move-result-object v1

    const/4 v2, -0x1

    invoke-virtual {v1, v3, v2, v3, v3}, Lcom/xingbook/cinema/a/d;->a(Ljava/util/ArrayList;ILjava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
